function formValidation(){
    
    var numeric = /^[0-9]+$/;
    var alphanumeric = /^[a-zA-Z0-9]+$/;
     var name = document.Registration.name;
      var emailex = /^([a-zA-Z0-9])([a-zA-Z0-9\._-])*@(([a-zA-Z0-9])+(\.))+([a-zA-Z]{2,4})+$/ ;
     var mbphn = document.Registration.mbphn;
     var ename = document.Registration.ename;
     
      if(name.value==''){
        alert("User Name is required");
        name.focus();
        return false;
    }else if(!alpha.test(name.value)){
        alert("User Name should be alphabetic");
        name.focus();
        return false;
    }
    if(ename.value==''){
        alert("Email ID is required");
        ename.focus();
        return false;
    }else if(!emailex.test(ename.value)){
        alert("email id should be alphanumeric");
        ename.focus();
        return false;
    }
      if(mbphn.value==''){
        alert("mobile number is required");
        mbphn.focus();
        return false;
    }else if(!numeric.test(mbphn.value)){
        alert("mobile number should be numeric");
        mbphn.focus();
        return false;
    }
    
}